export default {
  // 用户token
  setToken(state, userToken) {
    state.userToken = userToken;
    localStorage.setItem("userToken", userToken);
  },
  // 用户信息
  setUserInfo(state, userInfo) {
    state.userInfo = userInfo;
    localStorage.setItem("userInfo", JSON.stringify(userInfo));
  },
  //   博主信息
  setBlogger(state, blogger) {
    state.blogger = blogger;
    localStorage.setItem("blogger", JSON.stringify(blogger));
  },
  //   系统信息
  setSystemInfo(state, value) {
    state.systemInfo = value;
  },
};
